<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01-vue使用步骤</title>
</head>
<body>
    <div id="app">
        <p>姓名:{{name.toUpperCase()}}</p>
        <p>是否成年?{{age >= 18 ? "成年":"未成年"}}</p>
        <p>朋友得名字:{{friend.name}}</p>
    </div>

    <!--导入vue.js-->
    <script src="js/vue.js"></script>

    <script>
        /*创建vue实例对象*/
        let app = new Vue({
            /*数据挂载的节点*/
            el: '#app',
            data: {
                name:'lujieni',
                age: 19,
                friend:{
                    name:'露露',
                    age: 35
                }
            }
        })

    </script>

</body>
</html>